<template>
  <div>
    <h3>Params传参</h3>
    <p>a:{{this.$route.params.a}}</p>
    <p>b:{{this.$route.params.b}}</p>
  </div>
</template>

<script>
export default {
  name: "Two",
  mounted() {
    console.log("Two组件的mounted"+this.$route);
  }
}
</script>

<style scoped>

</style>